from datetime import datetime

 a='2019-02-14T02:20:48.123Z'

 datetime.strptime(a,'%Y-%m-%dT%H:%M:%S.%fZ')

 # datetime.datetime(2019, 2, 14, 2, 20, 48, 123000)